Skip to content

Conversation

@rbeasley-avgo
Copy link
Contributor

The validating py_test generated by compile_pip_requirements chokes when the source requirements.txt is stored read-only, such as when managed by the Perforce Helix Core SCM. Though dependency_resolver makes a temporary copy of this file, it does so w/ shutil.copy which preserves the original read-only file mode. To address this, this commit replaces shutil.copy with a shutil.copyfileobj such that the temporary file is created w/ permissions according to the user's umask.

Resolves (#2608).

@rbeasley-avgo rbeasley-avgo marked this pull request as ready for review March 31, 2025 16:27
Copy link
Collaborator

@aignas aignas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the contribution!

@aignas aignas enabled auto-merge May 30, 2025 09:18
@aignas aignas added this pull request to the merge queue May 30, 2025
Merged via the queue into bazel-contrib:main with commit af9e959 May 30, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants